<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"> 

<h:head></h:head> 
<body> 
	<h:form id="buscarEmpresa">
		<h:panelGrid columns="1" width="100%">
			
				<h:panelGrid columns="5" styleClass="alignCenter" width="80%">
					<h:outputText value="Buscar" />
					<p:inputText value="" />
					<p:commandButton value="Buscar"  icon="ui-icon-search">
					</p:commandButton>
				</h:panelGrid>
			
			<p:dataTable
					value="#{bbBuscadorEmpresa.listaEmpresas}"
					var="item" rows="15" selectionMode="single" rowKey="#{item.distancia}"
					paginator="true" paginatorPosition="bottom">
				<p:column headerText="Razon Social">
					<h:outputText value="#{item.razonSocial}" />
				</p:column>
				<p:column headerText="Distancia" >
					<h:outputText value="#{item.distancia} mts." />
				</p:column>
				
			</p:dataTable>
			
				<h:panelGrid columns="1" styleClass="alignCenter">
					<p:commandButton value="volver" style="width:150px"
									 actionListener="#{bbInicio.salirBuscadorEmpresa}" 
									 update=":popupBuscadorEmpresa" />
				</h:panelGrid>
		</h:panelGrid>
	</h:form>
</body> 
</html>
